#/bin/bash
cd Ass4
for item in *
do
  echo " "
  echo "COMPILING" $item
  cd $item
  rm *.o
  rm Aprog
  make -f ../../makefile.4
  cd ..
done
#
echo " "
echo "COMPILING COMPLETE"
echo " "
#
for item in *
do
  echo " "
  echo "EXECUTING" $item
  cd $item
  Aprog ../../zarrayinput ../../zwordsinput zoutput
  cd ..
echo "EXECUTION COMPLETE"
done
echo " "
